<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>运输计划管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="newTransportList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">运输计划列表</h3>
	</div>
	<div class="panel-body">
		<sys:message content="${message}"/>
	
	<!-- 搜索 -->
	<div class="accordion-group">
	<div id="collapseTwo" class="accordion-body collapse">
		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="newTransport" class="form form-horizontal well clearfix">
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="状态：">单据状态：</label>
				<select class="form-control" name="status" >
					<option value="" >请选择</option>
					<option value="已创建">已创建</option>
					<option value="已配载">已配载</option>
				</select>

				</div>
				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="状态：">计划状态：</label>
				<select class="form-control" name="jhstatus" >
					<option value="" >请选择</option>
					<option value="未计划">未计划</option>
					<option value="部分计划">部分计划</option>
					<option value="计划完成">计划完成</option>


				</select>

				</div>
				　
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="状态：">订单类型：</label>
					<select class="form-control" name="type" >
						<option value="" >请选择</option>
						<option value="销售订单">销售订单</option>
						<option value="调拨订单">调拨订单</option>
					</select>

				</div>
				　　
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="状态：">作业类型：</label>
					<select class="form-control" name="zylx" >
						<option value="" >请选择</option>
						<option value="常规">常规</option>
						<option value="整托">整托</option>
						<option value="倒短">倒短</option>
					</select>

				</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="委托单号：">委托单号：</label>
					<form:input path="wtdh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				<div class="col-xs-6 col-sm-3 col-md-2">
					<label class="label-item single-overflow pull-left" title="装运单号：">装运单号：</label>
					<form:input path="zydh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>

				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="提货仓库：">提货仓库：</label>
				<sys:gridselect url="${ctx}/infor/takeAddress/data" id="deop" name="deop.id" value="" labelName="deop.store" labelValue=""
								title="选择提货仓库" cssClass="form-control required" fieldLabels="名称" fieldKeys="store" searchLabels="名称" searchKeys="name" ></sys:gridselect>

				<%--<form:input path="deop" htmlEscape="false" maxlength="64"  class=" form-control"/>--%>
				</div>
				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="结算地：">结算地：</label>
				<sys:gridselect url="${ctx}/infor/settlement/data" id="jsd" name="jsd.id" value="" labelName="jsd.name" labelValue=""
								title="选择结算地" cssClass="form-control required" fieldLabels="名称" fieldKeys="name" searchLabels="名称" searchKeys="name" ></sys:gridselect>

				<%--<form:input path="jsd" htmlEscape="false" maxlength="64"  class=" form-control"/>--%>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="物料名称：">物料名称：</label>
				<sys:gridselect url="${ctx}/infor/goods/data" id="name" name="name.id" value="" labelName="name.name" labelValue=""
								title="选择物料" cssClass="form-control required" fieldLabels="名称" fieldKeys="name" searchLabels="名称" searchKeys="name" ></sys:gridselect>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="物料编码：">物料编码：</label>
				<form:input path="code" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　　　　
				　　　　　
				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="提货单号：">提货单号：</label>
				<form:input path="thdh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　　　　
				　　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="收货单位：">收货单位：</label>
				<form:input path="shdw" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>　　
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<div class="form-group">
					<label class="label-item single-overflow pull-left" title="下单日期：">&nbsp;下单日期：</label>
					<div class="col-xs-12">
						<div class='input-group date' id='date' >
							<input type='text'  name="date" class="form-control"  />
							<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
						</div>
					</div>
				</div>
				</div>
				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<div class="form-group">
					<label class="label-item single-overflow pull-left" title="要求发货日期：">&nbsp;要求发货日期：</label>
					<div class="col-xs-12">
						<div class='input-group date' id='fhdate' >
							<input type='text'  name="fhdate" class="form-control"  />
							<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
						</div>
					</div>
				</div>
				</div>
				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<div class="form-group">
					<label class="label-item single-overflow pull-left" title="要求到货日期：">&nbsp;要求到货日期：</label>
					<div class="col-xs-12">
						<div class='input-group date' id='dhdate' >
							<input type='text'  name="dhdate" class="form-control"  />
							<span class="input-group-addon">
			                       <span class="glyphicon glyphicon-calendar"></span>
			                   </span>
						</div>
					</div>
				</div>
				</div>
				　　　　
				　　　　　
				　　　　　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="结算吨位区间：">结算吨位区间：</label>
				<form:input path="width" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　　　
		 <div class="col-xs-12 col-sm-6 col-md-4">
			<div style="margin-top:26px">
			  <a  id="search" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
			 </div>
	    </div>	
	</form:form>
	</div>
	</div>
	</div>
	
	<!-- 工具栏 -->
	<div id="toolbar">
			<shiro:hasPermission name="tms:newTransport:add">
				<button id="add" class="btn btn-primary" disabled onclick="cjpz1()">
					<i class="glyphicon glyphicon-edit"></i> 创建配载
				</button>			</shiro:hasPermission>
			
	        	<a class="accordion-toggle btn btn-default" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
					<i class="fa fa-search"></i> 检索
				</a>
		    </div>
		
	<!-- 表格 -->
	<table id="newTransportTable" class="table text-nowrap"  data-toolbar="#toolbar"></table>
    <table  class="table text-nowrap">
		<tr>
			<th>选择条数:</th>
			<th id="idx"></th>
			<th>未发件数:</th>
			<th id="zjs"></th>
			<th>未发重量:</th>
			<th id="zzl"></th>
			<th>未发体积:</th>
			<th id="ztj"></th>
		</tr>
	</table>
    <!-- context menu -->
    <%--<ul id="context-menu" class="dropdown-menu">--%>
    	<%--<shiro:hasPermission name="tms:newTransport:edit">--%>
        <%--<li data-item="edit"><a>编辑</a></li>--%>
        <%--</shiro:hasPermission>--%>
        <%--<shiro:hasPermission name="tms:newTransport:del">--%>
        <%--<li data-item="delete"><a>删除</a></li>--%>
        <%--</shiro:hasPermission>--%>
        <%--<li data-item="action1"><a>取消</a></li>--%>
    <%--</ul>  --%>
	</div>
	</div>
	</div>
</body>
</html>